import { IsString, IsNotEmpty, MinLength, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class AdminRegisterDto {
  @ApiProperty({ description: '用户名' })
  @IsString()
  @IsNotEmpty()
  username: string;

  @ApiProperty({ description: '密码', minLength: 6 })
  @IsString()
  @MinLength(6)
  password: string;

  @ApiProperty({ description: '角色', enum: ['super', 'admin', 'operator', 'customer_service'], required: false })
  @IsString()
  @IsOptional()
  role?: 'super' | 'admin' | 'operator' | 'customer_service';
} 